package tests;

import common.Utils;
import org.openqa.selenium.By;

public class DelPost extends Utils {
    public static String url = "http://127.0.0.1:58080/index.html";
    public DelPost() {
        super(url);
    }
    public void Del() throws InterruptedException {
        driver.findElement(By.cssSelector("#artical-items-body > div:nth-child(1) > div > div.col > div.text-truncate > a > strong")).click();
        driver.findElement(By.cssSelector("#bit-forum-content > div.page-body > div > div > div:nth-child(1) > div.col-9.card.card-lg > div.card-footer.bg-transparent.mt-auto.justify-content-end > div > div:nth-child(3) > div > a > span")).click();
        driver.findElement(By.cssSelector("#details_artile_delete")).click();
        Thread.sleep(2000);
        driver.quit();
    }
}
